package com.youlai.boot.modules.content.mapper;

import com.aliyun.oss.model.Tag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.modules.content.model.entity.LzArticleTag;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.modules.content.model.query.LzArticleTagQuery;
import com.youlai.boot.modules.content.model.vo.LzArticleTagVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

/**
 * 文章标签关联Mapper接口
 *
 * @author lz0816
 * @since 2025-02-26 10:09
 */
@Mapper
public interface LzArticleTagMapper extends BaseMapper<LzArticleTag> {

    /**
     * 获取文章标签关联分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<LzArticleTagVO> getLzArticleTagPage(Page<LzArticleTagVO> page, LzArticleTagQuery queryParams);


    List<Long> listTagIdsArticleId(Long articleId);
}
